﻿using System;
using System.Collections.Generic;
using System.Text;

namespace BuyWithoutLoseMoney.Core.Models
{
    public class Order
    {
        public int Id { get; set; }//编号
        public int UserId { get; set; }//与用户表建立关系
        public virtual User  User { get; set; }
        public double TotalMoney { get; set; }//商品总价
        public int Status { get; set; }//状态 1.未付款 2.已付款 3.未发货 4.已发货
        public string ReceivingType { get; set; }//收货方式 
        public string ReceivingAddress { get; set; }//收货地址
        public DateTime? CreateTime { get; set; }//创建时间
        public DateTime? ArriveTime { get; set; }//到货时间
        public string Paymethod { get; set; }//支付方式
        public string Ext1 { get; set; }//备用列
        public string Ext2 { get; set; }//备用列
        public virtual ICollection<OrderDetails> OrderDetails { get; set; }




    }
}
